package com.morningstar.logger.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 登录日志
 *
 * @author Admin
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_log_login")
public class SysLogLogin {

    @TableId(value = "log_id", type = IdType.ASSIGN_ID)
    private Long logId;

    @TableField(value = "login_name")
    private String loginName;

    @TableField(value = "login_ip")
    private String loginIp;

    @TableField(value = "login_location")
    private String loginLocation;

    @TableField(value = "browser")
    private String browser;

    @TableField(value = "os")
    private String os;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "msg")
    private String msg;

    @TableField(value = "login_time")
    private LocalDateTime loginTime;
}
